package com.mjlf.messagepack;

import org.msgpack.annotation.Message;

/**
 * @ClassName User
 * @auther mjlf
 * @Date 2019/9/23 17:16
 * @Description 这个类上的 @Message注解必须加上， 否则部分进行编码， 不知道为什么
 */
@Message
public class User {

    private String name;
    private String address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
